//
//  Data.m
//  22-QQ音乐MV界面
//
//  Created by dllo on 16/8/12.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "Data.h"
#import "Contents.h"
#import "Mv_show_play.h"
@implementation Data
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"contents"]) {
        _contents = [Contents modelWithDic:value];
        
    } else if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray<Mv_show_play *> *array = [NSMutableArray array];
        NSArray *valueArray = value;
        for (NSDictionary *dic in valueArray) {
            Mv_show_play *mv = [Mv_show_play modelWithDic:dic];
            [array addObject:mv];
        }
        _mv_show_play = array;
    }
}
@end
